﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LL.Data.Mapping;

namespace LL.Data.FluentData.Mapping
{
    public static class MapperFactory
    {
        public static IMapper GetMapper<TEntity>()
        {
            Type type = typeof (TEntity);
            return new DefaultMapper(type);
        }

        public static IMapper GetMapper(object entity)
        {
            return new DefaultMapper(entity.GetType());
        }
    }
}
